package com.easyui.bean;

import java.util.Map;

import com.easyui.common.UserLogin;

public class Attachment {
	private int ano;
	private String aname;
	private String comment;
	private String size;
	private String uptime;
	private String uptype;
	private String upno;
	private String upname;
	private int pno;
	
	public void init(Map map) {
		this.setAno((Integer)map.get("ano"));
		this.setAname((String)map.get("aname"));
		this.setComment((String)map.get("comment"));
		this.setSize((String)map.get("size"));
		this.setUptime((String)map.get("uptime"));
		this.setUptype((String)map.get("uptype"));
		this.setUpno((String)map.get("upno"));
		this.setPno((Integer)map.get("bno"));
		this.setUpname(new UserLogin().getName(this.getUptype(), this.getUpno()));
	}

	public int getAno() {
		return ano;
	}

	public void setAno(int ano) {
		this.ano = ano;
	}

	public String getAname() {
		return aname;
	}

	public void setAname(String aname) {
		this.aname = aname;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getUptime() {
		return uptime;
	}

	public void setUptime(String uptime) {
		this.uptime = uptime;
	}

	public String getUptype() {
		return uptype;
	}

	public void setUptype(String uptype) {
		this.uptype = uptype;
	}

	public String getUpno() {
		return upno;
	}

	public void setUpno(String upno) {
		this.upno = upno;
	}

	public String getUpname() {
		return upname;
	}

	public void setUpname(String upname) {
		this.upname = upname;
	}

	public int getPno() {
		return pno;
	}

	public void setPno(int pno) {
		this.pno = pno;
	}

}
